package com.wongsir.springbootdemo.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @Description:http请求的配置参数
 * @author hjd
 * @date 2018年8月13日
 */
@Component
@Data
public class DemoHttpRequestConstants {
	
	public static final String CHARSET = "UTF-8";
	public static final String FILETYPE = ".txt";
	public static final String BASE64_HEAD = "data:image/jpg;base64,";
	public static final String IMG_SUFFIX = ".jpg";
	
	/**
	 * 请求登录地址
	 */
	@Value("${springboot.demo.loginAddress}")
	private String loginAddress;
	
	/**
	 * 登录账号
	 */
	@Value("${springboot.demo.account}")
	private String account;
	
	/**
	 * 登录密码
	 */
	@Value("${springboot.demo.password}")
	private String password;
}
